package sk.demo.entity;

import cn.org.atool.fluent.mybatis.annotation.FluentMybatis;
import cn.org.atool.fluent.mybatis.annotation.TableField;
import cn.org.atool.fluent.mybatis.annotation.TableId;
import cn.org.atool.fluent.mybatis.base.RichEntity;
import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * MessageEntity: 数据映射实体定义
 *
 * @author Powered By Fluent Mybatis
 */
@SuppressWarnings({"rawtypes", "unchecked"})
@Data
@Accessors(
    chain = true
)
@EqualsAndHashCode(
    callSuper = false
)
@FluentMybatis(
    table = "message",
    schema = "hh"
)
public class MessageEntity extends RichEntity {
  private static final long serialVersionUID = 1L;

  /**
   * 消息标识
   */
  @TableId("mes_id")
  private Long mesId;

  /**
   * 内容
   */
  @TableField("content")
  private String content;

  /**
   * 时间
   */
  @TableField("create_time")
  private Date createTime;

  /**
   * 标题
   */
  @TableField("title")
  private String title;

  /**
   * 收件人
   */
  @TableField("user_id")
  private String userId;

  @Override
  public final Class entityClass() {
    return MessageEntity.class;
  }
}
